QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += __LINUX__
DEFINES += LINUX_AARCH64
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    capture/CameraGrab.cpp \
    capture/CapThreadV4L2.cpp \
    common/img_conv.cpp \
    common/ldUtils.cpp \
    encoder/dictionary.c \
    encoder/ench264.cpp \
    encoder/ench265.cpp \
    encoder/iniparser.c \
    encoder/mediaenc_hd.cpp \
    encoder/mpi_enc_utils.c \
    encoder/mpp_opt.c \
    encoder/utils.c \
    log/elog.c \
    log/elog_async.c \
    log/elog_buf.c \
    log/elog_file.c \
    log/elog_file_port.c \
    log/elog_port.c \
    log/elog_utils.c \
    main.cpp \
    mainwindow.cpp \
    rtsplib/rtp_enc.c \
    rtsplib/rtsp_demo.c \
    rtsplib/rtsp_msg.c \
    rtsplib/rtsputils.c \
    rtsplib/stream_queue.c

HEADERS += \
    capture/CameraGrab.h \
    capture/CapThreadV4L2.h \
    capture/v4l2_common.hpp \
    common/img_conv.h \
    common/ldCommInc.h \
    encoder/dictionary.h \
    encoder/ench264.h \
    encoder/ench265.h \
    encoder/iniparser.h \
    encoder/mediaenc_hd.h \
    encoder/mpi_enc_utils.h \
    encoder/mpp_opt.h \
    encoder/utils.h \
    log/include/elog.h \
    log/include/elog_cfg.h \
    log/include/elog_file.h \
    log/include/elog_file_cfg.h \
    mainwindow.h \
    rtsplib/comm.h \
    rtsplib/queue.h \
    rtsplib/rtp_enc.h \
    rtsplib/rtsp_demo.h \
    rtsplib/rtsp_msg.h \
    rtsplib/rtsputils.h \
    rtsplib/stream_queue.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target



INCLUDEPATH += ./thirdpart/include   \
               ./capture \
               ./common   \
               ./encoder \
               ./rtsplib \
               ./serial  \
               ./network \
               ./config  \
               ./mediactrl \
               ./recogn \
               ./mainfsm \
               ./algrecogn  \
               ./algtercom  \
               ./algtrack   \
               ./record   \
               ./upgrade   \
               ./thirdpart/librknn_api/include  \
               ./thirdpart/mp4v2/include   \
               ./thirdpart/libyuv/include   \
               ./thirdpart/x264/include \
               ./log/include


LIBS += -L$$PWD/thirdpart/lib -lopencv_world -lrga  -lrockchip_mpp  -lm
LIBS += -L$$PWD/thirdpart/x264/lib   -lx264
LIBS += -L$$PWD/thirdpart/libyuv/lib -lyuv
